package com.zgjkhis.modules.system.service;

import com.zgjkhis.common.service.BaseService;
import com.zgjkhis.domain.PageResult;
import com.zgjkhis.modules.system.domain.Message;
import com.zgjkhis.modules.system.service.dto.MessageQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 消息通知
 */
public interface MessageService extends BaseService<Message>{


    /**
     * 查看所有消息
     * @param criteria
     * @param pageable
     * @return
     */
    PageResult<Message> queryAll(MessageQueryCriteria criteria, Pageable pageable);

    /**
     * 查看所有未读消息
     * @param criteria
     * @return
     */
    List<Message> queryAllNo(MessageQueryCriteria criteria);

    /**
     * 查看所有未读消息个数
     * @param criteria
     * @return
     */
    Integer count(MessageQueryCriteria criteria);
}
